package com.project.yunfeiblog.utils;


public enum HandleResult {

    SUCCESS("200", "SUCCESS"),

    BAD_REQUEST("400", "FAILURE");

    private String errorCode;

    private String errorMsg;

    HandleResult(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }
}
